NAnt
Help
Task Reference
<call> |
v0.85 |
[This is preliminary documentation and subject to change.]
Calls a NAnt target in the current project.
| Attribute | Type | Description | Required |
|---|---|---|---|
| target | string | NAnt target to call. | True |
| force | bool | Deprecated. Force an execute even if the target has already been executed. The default is false. | False |
| failonerror | bool | Determines if task failure stops the build, or is just reported. The default is true. | False |
| if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False |
| unless | bool | Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. |
False |
| verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False |
Call the target "build".
<call target="build" />
This shows how a project could 'compile' a debug and release build using a common compile target.
<project default="build">
<target name="compile">
<echo message="compiling with debug = ${debug}" />
</target>
<target name="build">
<property name="debug" value="false" />
<call target="compile"/>
<property name="debug" value="true" />
<call target="compile" />
</target>
</project>